<?php
require_once ('../bl/bl.php');
//require_once('./include/functions');

UI_initErrors();
$username = $_POST['username'];

//echo $username . " Is the username i got <br>";
$retval = BL_sendPassword($username);
if( $retval < 0 ){
	UI_registerError('msg_error', "Unknown Username");
}

else {
	UI_registerError('msg_success', "Password sent to your given email");
}


//echo "The retval i got was " . $retval ;

header('location:index.php');



?>
